package com.jingfang.cloud.widget.show;


import com.jingfang.cloud.core.model.ResultModel;
import com.jingfang.cloud.widget.main.MainWidget;
import lombok.Getter;
import org.dromara.quickswing.ui.app.QSDialog;

import java.awt.*;
import java.io.File;

@Getter
public class ShowDialog extends QSDialog<MainWidget> {
    private final ShowComponent checkComponent;

    public ShowDialog(MainWidget owner, File file, ResultModel resultModel) throws HeadlessException {
        super(owner, owner.getTitle(), true);
        this.setResizable(true);
        this.setSize(960, 720);
        this.checkComponent = new ShowComponent(owner, this,file, resultModel);
        this.setContentPane(checkComponent.getContentPanel());
        this.getRootPane().setDefaultButton(checkComponent.getSaveBtn());
        this.setLocationRelativeTo(null);
    }
}